package router

import (
	"api-wareway/handler/service"
	"api-wareway/middleware"
	"github.com/gin-gonic/gin"
)

func Router(r *gin.Engine) {
	r.POST("/sendSms", service.SendSms)
	r.POST("/user/register", service.RegisterUser)
	r.POST("/user/login", service.LoginUser)
	r.Use(middleware.Auth())
}
